package cn.edu.nuc.onlinestore.model;

import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.net.UnknownHostException;

import cn.edu.nuc.onlinestore.util.Socketutil;
import cn.edu.nuc.onlinestore.vo.Person;

public class Checkuser implements Checked {

	
	public Checkuser(){}
	
	public boolean checkuser(String username, String password) throws IOException {

		// TODO Auto-generated method stub
		return (new Socketutil()).userSocket("login",username,password);
	
	}

	@Override
	public boolean adduser(String username, String password) throws IOException, ClassNotFoundException {
		// TODO Auto-generated method stub
		return (new Socketutil()).userSocket("add",username,password);
	}


}
